﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BestCode.Creds.Media
{
    public interface ICredsMediaFeatures
    {
        void Save(int fieldDefinitionId, int entityId, int? entityChildId, byte[] resource, bool isAnverseFace, string description, string fileName, string entityInfo);
        List<MediaFeature> GetByEntity(int entityId);
        List<MediaFeature> GetByentityChild(int entityChildId);
        
    }

    public class MediaFeature
    {
        public int Id { get; set; }
        public int FieldDefinitionId { get; set; }
        public int EntityId { get; set; }
        public int? EntityChildId { get; set; }
        public byte[] Resource { get; set; }
        public DateTime CreationDate { get; set; }
        public bool IsAnverseFace { get; set; }
        public string Description { get; set; }
        public string FileName { get; set; }
        public string EntityInfo { get; set; }
    }

}
